package com.xiaoihu.mybatis.mapper;

import com.xiaoihu.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: xiaoihu
 * @Description:
 * @Date Created in 2022-04-09 9:34
 * @Modified By:
 */
public interface SQLMapper {

    //根据用户进行模糊查询
    List<User> getUserByName(@Param("username") String username);
    //批量删除
    int deleteMore(@Param("ids") String ids);
    //动态设置表名
    List<User> getUsersByTableName(@Param("tableName") String tableName);
    //添加用户
    void insertUser(User user);
}
